/*
 *    Alliciga's Process Partner Project
 * 
 *  Copyright (C) 2006-2011 Alliciga <alliciga@users.sourceforge.net>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 */
 
#ifndef MAIN_H_
#define MAIN_H_

#include <iostream>
#include <string>
#include <list>
#include <boost/program_options.hpp>
#include "MonitorThread.h"

using namespace std;

typedef list<MonitorThread> MonitorThreadList;

class ppp
{
	public:
		ppp();
		~ppp();
		bool HandleOptions(int ac,char** av);
		bool AddMonitorProcess(int pid);
		bool DeleteMonitorProcess(int pid);
		list<string> GetMonitorProcessList();
		bool AddMonitorPolicy(int pid, string mpName);
		bool DeleteMonitorPolicy(int pid, string mpName);
		bool AddNotificationPolicy(int pid,string mpName, string npName);
		bool DeleteNotificationPolicy(int pid, string mpName, string npName);
		bool run();
		list<string> GetAvailableNotificationPolicy();
		list<string> GetAvailableMonitorPolicy();
		list<string> GetMonitorPolicyList(int pid);
		list<string> GetNotificationPolicyList(int pid, string mpName);
	private:
		MonitorThreadList monitorThreadList;

		int level; //default check time, each MonitorThread has it's own check time.
};

#endif /*MAIN_H_*/
